﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myBackupService.Model
{
    public class DirectoryScanOptions
    { /// <summary>
      /// 是否包含文件
      /// </summary>
        public bool IncludeFiles { get; set; } = true;

        /// <summary>
        /// 是否包含目录
        /// </summary>
        public bool IncludeDirectories { get; set; } = true;

        /// <summary>
        /// 要包含的文件扩展名（如: .txt, .cs）
        /// </summary>
        public string[] IncludeExtensions { get; set; }

        /// <summary>
        /// 要排除的文件扩展名
        /// </summary>
        public string[] ExcludeExtensions { get; set; }

        /// <summary>
        /// 要排除的目录名
        /// </summary>
        public string[] ExcludeDirectories { get; set; }

        /// <summary>
        /// 是否跳过隐藏文件和目录
        /// </summary>
        public bool SkipHidden { get; set; } = false;

        /// <summary>
        /// 最大递归深度（0表示无限制）
        /// </summary>
        public int MaxDepth { get; set; } = 0;
    }
}
